package com.zhku.meeting.mapper;

import com.zhku.meeting.entities.Staff;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StaffMapper  {

    int deleteByPrimaryKey(Integer staffId);

    int insert(Staff record);

    Staff selectByPrimaryKey(Integer staffId);

    List<Staff> selectAll();

    int updateByPrimaryKey(Staff record);

    List<Staff> selectByCondition(Staff record);

    List<Staff> duplicateCheck(Staff record);

    int selectDeptNum(String deptName);

    String selectByEmail(String username);

    List<Staff> duplicateCheck1(Staff staff);

    Staff login(Staff staff);

    String selectDeptByStaffId(String staffId);

    String selectDeptByStaffId(Staff staffId);

    int userUpdateStaff(Staff record);

    int  selectIdByEmail(String name);

    int updatePassword(Staff staff);



//    List<Staff> duplicateCheck1(Staff staff);
}
